package com.ruoyi.shopping.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 购物车对象 jy_mall_shopping_cart
 *
 * @author scx
 * @date 2022-06-28
 */
@ApiModel
@Data
public class MallShoppingCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @ApiModelProperty(value = "${comment}")
    private Long id;

    /** 商品规格id */
    @Excel(name = "商品规格id")
    @ApiModelProperty(value = "商品规格id")
    private Long specsId;

    /** 加入人id */
    @Excel(name = "加入人id")
    @ApiModelProperty(value = "加入人id")
    private Long memberId;

    /** 是否失效 */
    @Excel(name = "是否失效")
    @ApiModelProperty(value = "是否失效")
    private String lapseState;

    private Integer num;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSpecsId(Long specsId)
    {
        this.specsId = specsId;
    }

    public Long getSpecsId()
    {
        return specsId;
    }
    public void setMemberId(Long memberId)
    {
        this.memberId = memberId;
    }

    public Long getMemberId()
    {
        return memberId;
    }
    public void setLapseState(String lapseState)
    {
        this.lapseState = lapseState;
    }

    public String getLapseState()
    {
        return lapseState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("specsId", getSpecsId())
            .append("memberId", getMemberId())
            .append("lapseState", getLapseState())
            .append("delState", getDelState())
            .append("delUser", getDelUser())
            .append("delType", getDelType())
            .append("delTime", getDelTime())
            .append("createBy", getCreateBy())
            .append("createType", getCreateType())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateType", getUpdateType())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
